package cn.com.connext.scrm.repository.master;


import cn.com.connext.scrm.domain.master.BrowseRecordActivity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface BrowseRecordActivityRepository extends JpaRepository<BrowseRecordActivity, String>, JpaSpecificationExecutor {
    @Query(value = "select count(a) from BrowseRecordActivity a where a.actId = :actId")
    Integer countAllByActId(@Param("actId") String actId);
}
